-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle duplicated Vert.x context in CaffeineCacheImpl #41647
Conversation
@geoand I'm out of time for today but I'll try to add the test later with a separate PR. Until then, I think this PR can be merged. WDYT? |
Yeah, I agree. Let's also get a +1 from @cescoffier |
This comment has been minimized.
This comment has been minimized.
Hm... I'm wondering if this change would affect Infinispan and Redis cache implementations... |
The Infinispan impl depends on a separate CacheResultInterceptor and does not depend on I'm not sure about the Redis impl. |
I think this is only the case for
cc @cescoffier |
The test from |
Custom annotations are deprecated in the infinispan client extension, they were introduced before the SPI existed. The infinispan cache extension is now fully providing the replacement of caffeine by infinispan with the new extension |
@geoand @gwenneg @cescoffier I don't know if we need any fix on the deprecated annotations, since the new extension provides the fix . what do you think ? |
https://quarkus.io/guides/cache-infinispan-reference |
I don't think the old annotations need a fix, but we do need to make sure that @gwenneg's fix doesn't break Infinispan with the regular cache annotations (my guess is that it might, as I don't see the context juggling that was moved to Caffeine) |
It needs a proper tests but I think the Redis cache is going to propagate the requester duplicated context, and the callback from Redis is going to preserve the duplicated context. |
@geoand how should I be testing this to make sure, beyond the already existing tests |
Take a look at the issues this PR closes. |
@geoand do you think I should move the change to the cache impl ? I can have a closer look tomorrow |
I think the infinispan cache implementation will need a similar change to this one |
@gwenneg I opened a PR here https://github.com/gwenneg/quarkus/pull/298/files |
@gwenneg could you please merge (without a merge commit) Katia's PR into your branch so this PR can be updated? Thanks |
Sure, done! |
Thanks a lot! |
Status for workflow
|
Hi @gwenneg. Did you have chance to look adding the test later with a separate PR as noted in #41647 (comment)? |
Hey @rsvoboda. No, not yet. I'm currently on PTO so that will have to wait a bit. |
ContextNotActiveException
inSecurityIdentityAugmentor
since Quarkus 3.10 #41081.